﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AutoCodeUI
{
    [Serializable]
    
   public  class Row
    {   
        /// <summary>
        /// 是否主键
        /// </summary>
        public bool IsKey { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public string EntityName { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string EntityType { get; set; }
        /// <summary>
        /// 最小长度
        /// </summary>
        public string MinLenght { get; set; }
        /// <summary>
        /// 最大长度
        /// </summary>
        public string MaxLenght { get; set; }
        /// <summary>
        /// 必填
        /// </summary>
        public bool   IsRequired { get; set; }
        /// <summary>
        /// 是否外键
        /// </summary>
        public bool IsForeignKey { get; set; }
       
        /// <summary>
        /// 默认值
        /// </summary>
        public string EntityValue { get; set; }
        /// <summary>
        /// 注释
        /// </summary>
        public string TagText { get; set; } = "";
    }
}
